home *** CD-ROM | disk | FTP | other *** search
- { %filename% -- Modal dialog}
- { Created %date% %time% by AppMaker}
-
- { This module overrides the AppMaker-generated code in z%dlogname%.% %}
- { It provides a place for you to add your own code and still be able to }
- { generate code for new changes to the user interface. This module will }
- { not be regenerated by AppMaker unless you delete it. Its superclass, }
- { z%dlogname%, may be regenerated to handle user interface changes% %}
- { without losing your hand-coded changes to this module. }
-
- Unit %unitname%;
- Interface
-
- Uses
- TCL,
- AMCL,
- %AppName%Intf,
- ResourceDefs;
-
- {----------}
- Procedure Do%dlogname% (aSupervisor: CDirectorOwner);
-
- {----------}
- Implementation
-
- %for each item gen defineItem%
-
- {----------}
- Procedure Do%dlogname% (aSupervisor: CDirectorOwner);
- var
- dialog: C%dlogname%;
- dismisser: longint;
- fi: FailInfo;
-
- {----------}
- Procedure HandleFailure (error: Integer;
- message: Longint);
- Begin
- ForgetObject (dialog);
- End;
-
- Begin
- dialog := nil;
- CatchFailures (fi, HandleFailure);
-
- New (dialog);
- dialog.I%dlogname% (aSupervisor);
-
- {initialize dialog panes}
-
- dialog.BeginDialog;
- dismisser := dialog.DoModalDialog (cmdOK);
-
- if dismisser = cmdOK then begin
- {extract values from dialog panes}
- end;
-
- dialog.Free;
-
- Success;
- End; {Do%dlogname%}
-
- {----------}
- Procedure C%dlogname%.I%dlogname% (aSupervisor: CDirectorOwner);
- Begin
- inherited IZ%dlogname% (aSupervisor);
-
- {any additional initialization for your dialog}
-
- End; {I%dlogname%}
-
- %for each item gen auxiliaryMethod%
- {----------}
- Procedure C%dlogname%.UpdateMenus;
- Begin
- inherited UpdateMenus;
-
- End; {UpdateMenus}
-
- {----------}
- Procedure C%dlogname%.DoCommand (theCommand: longint);
- Begin
- case theCommand of
- 0: ;
- %for each item gen DoCommand%
-
- otherwise
- inherited DoCommand (theCommand);
- end; {case}
-
- End; {DoCommand}
-
- {----------}
- Procedure C%dlogname%.ProviderChanged% %(aProvider: CCollaborator;
- reason: longint;
- info: univ Ptr);
-
- Begin
- %for each item gen ProviderChanged%
-
- End; {ProviderChanged}
-
- End. {%unitname%}
-